home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / keyb / cedwars2.zip / CEDSYN.THD < prev    next >
Text File  |  1988-09-10  |  22KB  |  553 lines

  1. @*
  2. Public-domain CED and its commercial enhancement, PCED, provided many
  3. opportunities for members to enhance the ease of use of their systems.
  4. Messages from February and March feature examples of synonyms and prompts,
  5. discussion of the parsing of variables in synonyms, ways to simulate the "echo
  6. off" feature of batch files, and other goodies.
  7.  
  8.  
  9. @* Message number range 227754-232623, plus some earlier (PCS-131) and 355
  10.    (PCS-72)
  11. @* Date range mid-February through 19 March 1986
  12.  
  13.  
  14. @* CDIR
  15.  
  16. Fm: dave rothman 70240,372
  17. To: cd 76703,2002 (X)
  18.  
  19. this thought just hit me....
  20.  
  21. how about 'cdir nn'  where nn is only files written w/in the last 'nn' days.
  22.  
  23. i just wrote a memo and its in a big \subdir and i know that i can just do the
  24. directory and look at the last few dates (or the first few if i think to
  25. reverse them), but 'dir 5' would be nifty and unique (plus u can do it on a dec
  26. 10 or 20...y not the pc?)!
  27.  
  28.  
  29. @* SYNS
  30.  
  31. Fm: dave rothman 70240,372
  32. To: cd 76703,2002 (X)
  33.  
  34. 4 u 2 keep in mind...
  35.  
  36. u might wanna think about letting syn's running on 2 lines...ie:
  37.  
  38. syn     junk    'b-on^cd\djkjd^123^sdhkj dhjsj^*jhsfh^jashj^chdsj
  39. ..              ^chkdsk^jieu^apl^del *.*^b-off'
  40.  
  41. i have plenty of long syns, and it would be handier if i could see them all
  42. within 80 cols...dave
  43.  
  44.  
  45. Fm: Chris Dunford (INF) 76703,2002
  46. To: dave rothman 70240,372 (X)
  47.  
  48. Nice synonym.  I particularly liked the automatic del *.*.  You did leave out
  49. 'keyfake "y" 13^format c:', tho.
  50.  
  51. <Now, DON'T anybody try that to see what it does!>
  52.  
  53.  
  54. Fm: Earle Robinson 70135,141
  55. To: all
  56.  
  57. Someone said that the ced definitions recently uploaded for pced offered
  58. nothing more than what the plain public domain ced has.  Well, here are a
  59. couple that you can't do with the latter, & are rather nice if you need to
  60. remove lightning and sidekick from the keyboard.  Superkey is already removable
  61. with an entry from the command line, key/k.
  62.  
  63. ced syn sk '^*key^*light^*sk'
  64. ced syn light '^*light^*sk'
  65. ced syn skoff 'keyfake @119 @117^kick'
  66. ced syn lightoff 'keyfake @119 @117 27 @47 @119 @117 ^kick'
  67.  
  68. Note, that the 'lightoff' will only remove lightning AFTER sidekick has been
  69. removed.  I have alt-v as the hot key for lightning; you will have to adjust
  70. the '@47' in the synonym to accomodate what you may have.
  71.  
  72.  
  73. Fm: dave rothman 70240,372
  74. To: all
  75.  
  76. and another enhancement to the rothman ced,infoscope,keyfake rolodex system:
  77.  
  78. syn     is              'cd\is^*is'
  79. syn     rolo            'keyfake "find %1" 13^is roloform'
  80.  
  81. now all i gotta do is type "rolo mantle" at the prompt and mickey mantle's
  82. rolodex card comes to the fore.
  83.  
  84. the more i think about keyfake, the more impressed i am at with its usefulness!
  85. it works so well w/PCED.
  86.  
  87. ps...rumor has it, dunford has included his own vers of it in the soon to be
  88. released PCED (the beta vers did not have the dunford version).
  89.  
  90.  
  91. Fm: dave rothman 70240,372
  92. To: all
  93.  
  94. u guys may recall my little syn called 'load':
  95.  
  96. syn     lo*ad   'cd\123^chmod -n %1.wks^fix %1tmp.prn...^
  97.                           ...keyfake "/fr%1" 13^123^chmod -h %1.wks^offstack'
  98.  
  99. (the dots are added so that the whole thing fits within 80 cols)
  100.  
  101. syn     offstack        'keyfake @72 @118 27'
  102.  
  103. load lets me keep certain confidential .wks files hidden but easily loaded into
  104. 123. for example, i might type 'load balance' to unhide my personal balance
  105. sheet, run 123, do a /fr w/keyfake, then hide it again when i exit.
  106.  
  107. the only prob, was that the original 'load' command was always resident in
  108. the stack, so someone could hit some uparrows and see the names of the
  109. hidden files (clearly anyone with any real knowledge would know how to find
  110. them anyway, but thats not a concern in this case).
  111.  
  112. the solution is the 'offstack' syn.  chris came up with it, and it's pretty
  113. clever.  all it does is when u exit 123, it hits an uparrow and then a ^pgdn
  114. (which blows away that item), and finally an escape to clear the prompt
  115. line....dave
  116.  
  117.  
  118. Fm: Jim Butler 74766,1460
  119. To: SysOp Chris Dunford 76703,2002
  120.  
  121. That does remind me of one seemingly recurring circumstance in the killing of
  122. my syns (leaving poor ced whimpering but still alive).  I have a couple of syns
  123. to invoke wordstar2000 to edit my ced.syn file and my autoexec.bat file, then
  124. copy the edited file to the "master file" I keep on the shelf.  In other words,
  125. ced.002 is my fully loaded tsr version, ced.dv is a stripped version for use
  126. after desqview, ced.rb is an intermediate version I use with rbase sessions,
  127. etc.  So I edit the current ced.syn or autoexec.bat, but then copy the edited
  128. version back to the master from which it came (clear?).  Here are the syns;
  129.  
  130. syn edal ^c:^w c:\ced.syn^co c:\ced.syn c:\ced.002^newal^cls
  131. syn eddo ^w c:\do.pro^cls
  132. syn edex ^w c:\autoexec.bat^co c:\autoexec.bat c:\autoexec.002
  133.  
  134. hmmmm, I think I found *this* problem, but will share it with other users. I
  135. was just going to give you my syn for "newal", but when I went to cut and
  136. paste it here, I realized that I was using CED language instead of PCED
  137. language. My old syn was:
  138.  
  139. syn newal ced clear syn^ced -fced.syn
  140.  
  141. Although I have not tested it yet, I have now changed it to:
  142.  
  143. syn newal ced clear syn^c:\ced load c:\ced.syn
  144.  
  145. .....but I do not think this is the only sequence that has killed my syns ....
  146.  
  147.  
  148.  
  149. @* EDITING CONFIGURATION FILE
  150.  
  151. Fm: dave rothman 70240,372
  152. To: Steven Stern 70327,135
  153.  
  154. u might consider this approach which automatically reloads after u edit your
  155. ced file:
  156.  
  157. syn     ce              'pm c:\sys3\ced.cmd^newced' syn     newced
  158. 'ced clear syn^ced load c:\sys3\ced.cmd'
  159.  
  160.  
  161. Fm: Frank Markus 74415,1076
  162. To: Steven Stern 70327,135
  163.  
  164. I use a different CED SYN to use KEDIT modify my CED configuration file which I
  165. have renamed to CFG.CED.  The two KEY commands first clear and then reset my
  166. SuperKey environments.  The PAL-KED and PAL-NORM are the names of other CED
  167. SYNs that use KCSETPAL to set the colors for my EGA.
  168.  
  169. SYN CFG KEY 0 /ml^PAL-KED^C:\KEDIT\KEDIT CFG.CED^KEY DOS2 /ml^PAL-NORM
  170.  
  171.      Stripped to it's essence, my SYN is:
  172. SYN CFG C:\KEDIT\KEDIT CFG.CED
  173. which is nothing if not very very simple.  I use a SuperKey macro to reload
  174. PCED with the new CFG.CED file so that I don't have to reboot.  I am not sure
  175. whether this can be done in regular CED.  If it isn't you have still another
  176. reason to get PCED.  That macro is:
  177. CED LOAD C:\UTIL\CFG.CED<ENTER> <ENDDEF>
  178.  
  179.  
  180. Fm: dave rothman 70240,372
  181. To: Frank Markus 74415,1076
  182.  
  183. i messed up the last time i uploaded this cuz i dorgot to
  184. unformat it, but here's the way to accomplish what u described:
  185.  
  186. syn     ce              'e c:\sys3\ced.cmd^newced'
  187. syn     newced          'ced clear syn^ced load c:\sys3\ced.cmd'
  188.  
  189. if u dont have pced, then u dont use 'load' but '-f'
  190.  
  191.  
  192. Fm: Frank Markus 74415,1076
  193. To: dave rothman 70240,372
  194.  
  195.      Dave, your CED "newced" SYN inspired me to elaborate my "CFG" SYN and to
  196. get rid of SuperKey in order to leave more room for KEDIT to work in.  My new
  197. "CFG" SYN uses KEDIT to work on my CFG.CED file and then clears and reloads the
  198. SYN file used by CED by calling a new SYN called CEDLOAD.
  199. SYN CEDLOAD CED CLEAR SYN^CED LOAD C:\UTIL\CFG.CED SYN CFG
  200. PAL-KED^C:\KEDIT\KEDIT CFG.CED^PAL-NORM^CEDLOAD^CO
  201. The syntax used by CEDLOAD is correct for PCED; with minor alteration, it works
  202. with regular CED too.
  203.  
  204. I was rather amazed that CED can use its SYN file to destroy and then
  205. regenerate itself.  But it can.  Far from the only amazing thing in CED or
  206. PCED.  But I will restrain myself until PCED is oficially released...RSN.
  207.  
  208.  
  209. Fm: Dave Hoagland 72365,42
  210. To: Frank Markus 74415,1076
  211.  
  212. Sure would be nice if you two had the necessary skills to work with standard
  213. CED, so you could come up to our level and work without the additional crutches
  214. provided by PCED.  The unchallenging stuff you're doing gets pretty boring.
  215. For those who can manage to work with standard CED, I offer the following
  216. example (which has survived the test of several months of use).
  217.  
  218. syn cededit kedit ced.cfg^ced clear syn^ced -fced.syn
  219.  
  220. Super complex.  Add your own paths and stir wel